package com.shh.aiojbackendserver.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shh.aiojbackendserver.model.dto.QuestionAi.QuestionAiQueryRequest;
import com.shh.aiojbackendserver.model.dto.question.QuestionQueryRequest;
import com.shh.aiojbackendserver.model.entity.Question;
import com.shh.aiojbackendserver.model.entity.QuestionAi;
import com.shh.aiojbackendserver.model.vo.QuestionAiVO;
import com.shh.aiojbackendserver.model.vo.QuestionVO;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author yuppie
* @description 针对表【question_ai(题目)】的数据库操作Service
* @createDate 2025-05-04 15:47:05
*/
public interface QuestionAiService extends IService<QuestionAi> {
    /**
     * 校验
     *
     * @param questionAi
     * @param add
     */
    void validQuestion(QuestionAi questionAi, boolean add);

    /**
     * 获取查询条件
     *
     * @param questionAiQueryRequest
     * @return
     */
    QueryWrapper<QuestionAi> getQueryWrapper(QuestionAiQueryRequest questionAiQueryRequest);

    /**
     * 分页获取题目封装
     *
     * @param questionAiPage
     * @return
     */
    Page<QuestionAiVO> getQuestionAiVOPage(Page<QuestionAi> questionAiPage);


    /**
     * 获取ai题目封装类
     * @param questionAi
     * @param request
     * @return
     */
    QuestionAiVO getQuestionAiVO(QuestionAi questionAi,HttpServletRequest request);


}
